package com.xzj.common.plugins.disruptor.factory;

import com.lmax.disruptor.EventFactory;
import com.xzj.common.plugins.disruptor.domain.DisruptorMessage;

/**
 * @program: xzj-common
 * @ClassName: DisruptorEventFactory
 * @description: 事件工厂类
 * @author: XiaZunJun
 * @create: 2024-11-19 10:33
 */
public class DisruptorEventFactory<T> implements EventFactory<DisruptorMessage<T>> {

    @Override
    public DisruptorMessage<T> newInstance() {
        return new DisruptorMessage<>();
    }
}